package com.qjc.demo.service.impl;

import com.qjc.demo.service.HelloProvider;
import org.apache.dubbo.config.annotation.Service;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;


@Service
public class HelloProviderImpl implements HelloProvider {


    @Override
    public String hello(String name) {
        return "hello! " + name;
    }

    @Override
    public List<Map<String, String>> testMapList(Map<String, String> map) {
        List<Map<String, String>> list = new ArrayList<Map<String, String>>();
        list.add(map);
        Map<String, String> map2 = new HashMap<String, String>();
        map2.put("env", "env");
        map2.put("testKey", "testValue");
        list.add(map2);
        return list;
    }
}
